package com.situ.gym.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.situ.gym.pojo.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.situ.gym.pojo.query.CourseQuery;
import com.situ.gym.pojo.vo.ChartCountVO;
import com.situ.gym.pojo.vo.CourseVO;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2025-08-22
 */
public interface ICourseService extends IService<Course> {
    IPage<CourseVO> list(CourseQuery courseQuery);
    void deleteAll(Integer[] ids);

    void exportExcel(HttpServletResponse response);

    void importExcel(MultipartFile file);

    List<ChartCountVO> selectHotCourse();
    
    Long selectUserCourseTotal(Integer userId);
    
    // 教练相关方法
    Long selectCoachCourseTotal(Integer coachId);
}
